package com.taobao.client.sdk;

import java.util.Map;

import com.google.gwt.user.client.Window;
import com.taobao.client.Data;

public class DelayDateRequest extends CommonRequest {

	// The trade type.
	private String biz_type;
	// The trade id.
	private String biz_order_id;
	// The callback url
	private String callback_url;
	
	/**
	 * Default constructor
	 */
	public DelayDateRequest(){}
	
	/**
	 * @param pairs the hashmap whose contents are set
	 */
	public void setMapContent(Map<String, String> pairs) {
		pairs.put("method", Data.API_RECEIVE_TIME_EXTEND);
		pairs.put("biz_type", "620");
//		pairs.put("bizType", "620");
		pairs.put("biz_order_id", biz_order_id);
//		pairs.put("bizOrderId", biz_order_id);
		pairs.put("callback_url", callback_url);
//		pairs.put("callBackUrl", callback_url);
	}
	
	/**
	 * Initialize unchangable parameters
	 */
	public void initialize() {
		setCallback_url(Window.Location.getHref());
	}

	/**
	 * @return the biz_type
	 */
	public String getBiz_type() {
		return biz_type;
	}

	/**
	 * @param bizType the biz_type to set
	 */
	public void setBiz_type(String bizType) {
		biz_type = bizType;
	}

	/**
	 * @return the biz_order_id
	 */
	public String getBiz_order_id() {
		return biz_order_id;
	}

	/**
	 * @param bizOrderId the biz_order_id to set
	 */
	public void setBiz_order_id(String bizOrderId) {
		biz_order_id = bizOrderId;
	}

	/**
	 * @return the callback_url
	 */
	public String getCallback_url() {
		return callback_url;
	}

	/**
	 * @param callbackUrl the callback_url to set
	 */
	public void setCallback_url(String callbackUrl) {
		callback_url = callbackUrl;
	}
	
}
